package com.cow.sram.data.dto;

import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;

import com.cow.sram.data.entity.Resourceinfo;
import com.cow.sram.data.entity.Roleinfo;

public class User implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	private Integer userid;
	private String accountname;
	private String username;
	private String password;
	private String telephone;
	private String mobile;
	private String email;
	private Integer job;
	private String jobName;
	private Date registtime;
	private String registip;
	private Long logtimes;
	private Date lastlogintime;
	private String lastloginip;
	private String lockflag;
	private String lockreason;
	private String authlevel;
	private String datagroup;
	private List<Roleinfo> roleList;
	private LinkedHashMap<Integer,TreeInfo> menuMap;
	private OrgInfoDTO orgInfoDTO;
	private HashMap<String,List<Resourceinfo>> resourceMap;
	
	// Constructors

	/** default constructor */
	public User() {
		orgInfoDTO = new OrgInfoDTO();
	}
	// Property accessors

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getAccountname() {
		return this.accountname;
	}

	public void setAccountname(String accountname) {
		this.accountname = accountname;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getRegisttime() {
		return this.registtime;
	}

	public void setRegisttime(Date registtime) {
		this.registtime = registtime;
	}

	public String getRegistip() {
		return this.registip;
	}

	public void setRegistip(String registip) {
		this.registip = registip;
	}

	public Long getLogtimes() {
		return this.logtimes;
	}

	public void setLogtimes(Long logtimes) {
		this.logtimes = logtimes;
	}

	public Date getLastlogintime() {
		return this.lastlogintime;
	}

	public void setLastlogintime(Date lastlogintime) {
		this.lastlogintime = lastlogintime;
	}

	public String getLastloginip() {
		return this.lastloginip;
	}

	public void setLastloginip(String lastloginip) {
		this.lastloginip = lastloginip;
	}

	public String getLockflag() {
		return this.lockflag;
	}

	public void setLockflag(String lockflag) {
		this.lockflag = lockflag;
	}

	public String getLockreason() {
		return this.lockreason;
	}

	public void setLockreason(String lockreason) {
		this.lockreason = lockreason;
	}


	public String getAuthlevel() {
		return authlevel;
	}

	public void setAuthlevel(String authlevel) {
		this.authlevel = authlevel;
	}

	public String getDatagroup() {
		return datagroup;
	}

	public void setDatagroup(String datagroup) {
		this.datagroup = datagroup;
	}

	public List<Roleinfo> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<Roleinfo> roleList) {
		this.roleList = roleList;
	}
	
	public OrgInfoDTO getOrgInfoDTO() {
		return orgInfoDTO;
	}

	public void setOrgInfoDTO(OrgInfoDTO orgInfoDTO) {
		this.orgInfoDTO = orgInfoDTO;
	}

	public boolean isAccountNonExpired() {
		return true;
	}


	public boolean isAccountNonLocked() {
		return true;
	}

	public boolean isCredentialsNonExpired() {
		return true;
	}


	public boolean isEnabled() {
		return true;
	}

	public HashMap<Integer, TreeInfo> getMenuMap() {
		return menuMap;
	}

	public void setMenuMap(LinkedHashMap<Integer, TreeInfo> menuMap) {
		this.menuMap = menuMap;
	}

	public HashMap<String, List<Resourceinfo>> getResourceMap() {
		return resourceMap;
	}

	public void setResourceMap(HashMap<String, List<Resourceinfo>> resourceMap) {
		this.resourceMap = resourceMap;
	}

	public Integer getJob() {
		return job;
	}

	public void setJob(Integer job) {
		this.job = job;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}
	
}